<extend name="Shops:layout" />
<block name="content">
<style>
.ATRoot{height:22px;line-height:22px;margin-left:5px;clear:both;cursor:pointer;}
.ATNode{margin-left:5px;line-height:22px;margin-left:17px;clear:both;cursor:pointer;}
.Hide{display:none;}
dl.areaSelect{padding:0 5px; display: inline-block; width:100%; margin-bottom: 0;/*border:1px solid #eee;*/}
dl.areaSelect:hover{border:1px solid #E5CD29;}
dl.areaSelect:hover dd{display: block;}
dl.areaSelect dd{ float: left; margin-left: 20px; cursor: pointer;}
</style>

<script src="__PUBLIC__/plugins/kindeditor/kindeditor.js"></script>
<script src="__PUBLIC__/plugins/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.3&key=2b53397482f52f92dcb7c528d99d9fca"></script>

<script>
var relateCommunity = "{$object['relateCommunity']}".split(',');
var relateArea = "{$object['relateArea']}".split(',');
var areaId = '{$object['areaId2']}';
var shopMap = null;
var toolBar = null;
$(function () {
     //展开按钮
     $("#expendAll").click(function(){
      if ($(this).prop('checked')==true) {$("dl.areaSelect dd").removeClass('Hide')}
      else{$("dl.areaSelect dd").addClass('Hide')}
     })
    if($('#areaId1:selected')){
      var params = {};
      params.areaId1 = $('#areaId1').val();
      $.post('__CONTROLLER__/gainArea',params,function(msg){
          if(msg.status == 1){
             var areaId2 = {$object.areaId2};
             var str = '';

            //区域
            $.post('__CONTROLLER__/gainArea2',{areaId2:areaId2},function(msg){
                if(msg.status == 1){
                   var areaId3 = {$object.areaId3};
                   var str = '';
                    for(var i=0;i<=msg.info.length;i++){
                        var name = msg.info[i]['areaName'];
                        var values = msg.info[i]['areaId'];
                        if( areaId3 == values){
                            str = "<option selected='selected' value='"+values+"'>"+name+"</option>";
                        }else{
                            str = "<option value='"+values+"'>"+name+"</option>";
                        }
                        $('#areaId3').append(str);
                    }
                }else if(msg.status == 0){
                    alert(msg.info);
                }
            },'json');

              for(var i=0;i<=msg.info.length;i++){
                  var name = msg.info[i]['areaName'];
                  var values = msg.info[i]['areaId'];
                  /*var areaId2 = document.getElementById('areaId2');
                  areaId2.options.add(new Option(name,values));*/
                  if( areaId2 == values)
                  {
                      str = "<option selected='selected' value='"+values+"'>"+name+"</option>";
                  }else{
                      str = "<option value='"+values+"'>"+name+"</option>";
                  }
                  $('#areaId2').append(str);
              }

          }else if(msg.status == 0){
              alert(msg.info);
          }

      },'json');
    }


     $.formValidator.initConfig({
       theme:'Default',mode:'AutoTip',formID:"myform",debug:true,submitOnce:true,onSuccess:function(){
         editShop();
         return false;
      },onError:function(msg){
    }});
    $("#shopName").formValidator({onShow:"",onFocus:"店铺名称不能超过20个字符",onCorrect:"输入正确"}).inputValidator({min:1,max:20,onError:"店铺名称不符合要求,请确认"});
    $("#userName").formValidator({onShow:"",onFocus:"请输入店主姓名",onCorrect:"输入正确"}).inputValidator({min:1,max:20,onError:"店主姓名不能为空,请确认"});
    $("#shopCompany").formValidator({onShow:"",onFocus:"请输入公司名称",onCorrect:"输入正确"}).inputValidator({min:1,max:50,onError:"公司名称不能为空,请确认"});
    $("#shopTel").formValidator({onShow:"",onFocus:"请输入店铺电话",onCorrect:"输入正确"}).inputValidator({min:1,max:50,onError:"店铺电话不能为空,请确认"});
    $("#shopAddress").formValidator({onShow:"",onFocus:"请输入公司地址",onCorrect:"输入正确"}).inputValidator({min:1,max:50,onError:"公司地址不能为空,请确认"});
    $("#bankNo").formValidator({onShow:"",onFocus:"请输入银行卡号",onCorrect:"输入正确"}).inputValidator({min:1,max:50,onError:"银行卡号不能为空,请确认"});
    $("#deliveryStartMoney").formValidator({onShow:"",onFocus:"请输入订单配送起步价",onCorrect:"输入正确"});
    
    //$("#deliveryFreeMoney").formValidator({onShow:"",onFocus:"请输入包邮起步价",onCorrect:"输入正确"});
    //$("#deliveryMoney").formValidator({onShow:"",onFocus:"请输入邮费",onCorrect:"输入正确"});
    //$("#deliveryCostTime").formValidator({onShow:"",onFocus:"请输入平均配送时间",onCorrect:"输入正确"});
    //$("#avgeCostMoney").formValidator({onShow:"",onFocus:"请输入平均消费金额",onCorrect:"输入正确"});

    getCommunitysForShopEdit();
    initTime('serviceStartTime','{$object['serviceStartTime']}');
    initTime('serviceEndTime','{$object['serviceEndTime']}');
    ShopMapInit();
});
    function ShopMapInit(option){
        var opts = {zoom:$('#mapLevel').val(),longitude:$('#longitude').val(),latitude:$('#latitude').val()};
        if(shopMap)return;
        $('#shopMap').show();
        shopMap = new AMap.Map('mapContainer', {
            view: new AMap.View2D({
                zoom:opts.zoom
            })
        });
        if(opts.longitude!='' && opts.latitude!=''){
            shopMap.setZoomAndCenter(opts.zoom, new AMap.LngLat(opts.longitude, opts.latitude));
            var marker = new AMap.Marker({
                position: new AMap.LngLat(opts.longitude, opts.latitude), //基点位置
                icon:"http://webapi.amap.com/images/marker_sprite.png"
            });
            marker.setMap(shopMap);
        }
        shopMap.plugin(["AMap.ToolBar"],function(){
            toolBar = new AMap.ToolBar();
            shopMap.addControl(toolBar);
            toolBar.show();
        });

        AMap.event.addListener(shopMap,'click',function(e){
            shopMap.clearMap();
            $('#longitude').val(e.lnglat.getLng());
            $('#latitude').val(e.lnglat.getLat());
            var marker = new AMap.Marker({
                position: e.lnglat, //基点位置
                icon:"http://webapi.amap.com/images/marker_sprite.png"
            });
            marker.setMap(shopMap);
        });
        AMap.event.addListener(shopMap,'zoomchange',function(e){
            $('#mapLevel').val(this.getZoom());
        })
    }
var filetypes = ["gif","jpg","png","jpeg"];
function getAreaList(objId,parentId,t,id) {
    var params = {};
    params.parentId = parentId;
    $('#' + objId).empty();
    if (t < 1) {
        $('#areaId3').empty();
        $('#areaId3').html('<option value="">请选择</option>');
    } else {
        if (t == 1 && $('#areaId2').find("option:selected").text() != '') {
            shopMap.setZoom();
            shopMap.setCity($('#areaId2').find("option:selected").text());
            $('#showLevel').val(shopMap.getZoom());
        }
    }
    var html = [];
    if(params.parentId>0){
    $.post("{:U('Admin/Areas/queryShowByList')}", params, function (data, textStatus) {
        html.push('<option value="">请选择</option>');
        var json = WST.toJson(data);
        if (json.status == '1' && json.list && json.list.length > 0) {
            var opts = null;
            for (var i = 0; i < json.list.length; i++) {
                opts = json.list[i];
                html.push('<option value="' + opts.areaId + '" ' + ((id == opts.areaId) ? 'selected' : '') + '>' + opts.areaName + '</option>');
            }
        }
        $('#' + objId).html(html.join(''));
        if (id)getCommunitys();
    });
  }
}
function getCommunitys(){
        $('#areaTree').empty();
        var v = $('#areaId2').val();
        if(v!==-1){
            $.post("{:U('Admin/Areas/queryAreaAndCommunitysByList')}",{areaId:v},function(data,textStatus){
                var json = data;
                if(json.list){
                    var html = [];
                    json = json.list;
                    for(var i=0;i<json.length;i++){
                        var isAreaSelected = ($.inArray(json[i]['areaId'],relateArea)>-1)?" checked ":"";
                        communitysCount = 0
                        if (json[i].communitys) {
                            for (var j =json[i].communitys.length - 1; j >= 0; j--) {
                                if ($.inArray(json[i].communitys[j]['communityId'],relateCommunity) > -1 ) {communitysCount++;};
                            };
                        };
                        html.push("<dl class='areaSelect' id='"+json[i]['areaId']+"'>");
                        html.push("<dt class='ATRoot' id='node_"+json[i]['areaId']+"' isshow='0'>"+json[i]['areaName']+"：<span> <input type='checkbox' all='1' class='AreaNode' onclick='javascript:selectArea(this)' id='ck_"+json[i]['areaId']+"' "+isAreaSelected+" value='"+json[i]['areaId']+"'><label for='ck_"+json[i]['areaId']+"' "+isAreaSelected+" value='"+json[i]['areaId']+"'>全区配送</label></span> <small>(已选<span class='count'>"+communitysCount+"</span>个社区)</small></dt>");
                        if(json[i].communitys && json[i].communitys.length){
                            for(var j=0;j<json[i].communitys.length;j++){
                                var isCommunitySelected = ($.inArray(json[i].communitys[j]['communityId'],relateCommunity)>-1)?" checked ":"";
                                isCommunitySelected += (isAreaSelected!='')?" disabled ":"";
                                html.push("<dd id='node_"+json[i]['areaId']+"_"+json[i].communitys[j]['communityId']+"'><input type='checkbox' id='ck_"+json[i]['areaId']+"_"+json[i].communitys[j]['communityId']+"' all='0' class='AreaNode' "+isCommunitySelected+" onclick='javascript:selectArea(this)' value='"+json[i].communitys[j]['communityId']+"'><label for='ck_"+json[i]['areaId']+"_"+json[i].communitys[j]['communityId']+"'>"+json[i].communitys[j]['communityName']+"</label></dd>");
                            }
                        }
                        html.push("</dl>");
                    }
                    $('#areaTree').html(html.join(''));
                    $('#expendAll').parent().removeClass('Hide');
                    $('#expendAll').attr('checked','checked');
                }
            });
        }
}
</script>
   <div class="wst-body">
       <div class='wst-page-header'>卖家中心 > 店铺资料</div>
       <div class='wst-page-content' style="position:relative;">
       <iframe name="upload" style="display:none"></iframe>
        <!--店铺图标-->
      <form id="uploadform_Filedata" autocomplete="off" style="position:absolute;top:410px;left:138px;z-index:10;"enctype="multipart/form-data" method="POST" target="upload" action="{:U('Home/Shops/uploadPic')}" >
        <div style="position:relative;">
        <input id="shopImg" name="shopImg" disabled="disabled" class="text" type="text" value="{$object.shopImg}" readonly style="margin-right:4px;float:left;margin-left:8px;width:237px;"/>
        <div class="div1">
          <div class="div2">浏览</div>
          <input type="file" class="inputstyle" id="Filedata" name="Filedata" onchange="updfile('Filedata');" >
        </div>
        <div style="clear:both;"></div>
        <div >&nbsp;图片大小:150 x 150 (px)(格式为 gif, jpg, jpeg, png)</div>
        <input type="hidden" name="dir" value="shops">
        <input type="hidden" name="width" value="150">
        <input type="hidden" name="folder" value="Filedata">
        <input type="hidden" name="sfilename" value="Filedata">
        <input type="hidden" name="fname" value="shopImg">
        <input type="hidden" id="s_Filedata" name="s_Filedata" value="">
        </div>
      </form>
      <!--营业执照图片-->
      <form id="uploadform_Perm" autocomplete="off" style="position:absolute;top:625px;left:138px;z-index:10;" enctype="multipart/form-data" method="POST" target="upload" action="{:U('Home/Shops/uploadPic')}" >
            <div style="position:relative;">
                <input id="permitImg" name="permitImg" disabled="disabled" class="text"  type="text" value="{$object.permitImg}" readonly style="margin-right:4px;float:left;margin-left:8px;width:237px;"/>
                <div class="div1">
                    <div class="div2">浏览</div>
                    <input type="file" class="inputstyle" id="Perm" name="Perm" onchange="updfile('Perm');" >
                </div>
                <div style="clear:both;"></div>
                <div >&nbsp;图片大小:150 x 150 (px)(格式为 gif, jpg, jpeg, png)</div>
                <input type="hidden" name="dir" value="shops">
                <input type="hidden" name="width" value="150">
                <input type="hidden" name="folder" value="Perm">
                <input type="hidden" name="sfilename" value="Perm">
                <input type="hidden" name="fname" value="permitImg">
                <input type="hidden" class="s_Filedata" name="s_Filedata" value="">
            </div>
          </form>
          <!--身份证正面图片-->
          <form id="uploadform_Identi" autocomplete="off" style="position:absolute;top:835px;left:138px;z-index:10;" enctype="multipart/form-data" method="POST" target="upload" action="{:U('Home/Shops/uploadPic')}" >
            <div style="position:relative;">
                <input id="identityImg" disabled="disabled" name="identityImg" class="text" type="text" value="{$object.idImg}" readonly style="margin-right:4px;float:left;margin-left:8px;width:237px;"/>
                <div class="div1">
                    <div class="div2">浏览</div>
                    <input type="file" class="inputstyle" id="Identi" name="Identi" onchange="updfile('Identi');" >
                </div>
                <div style="clear:both;"></div>
                <div >&nbsp;图片大小:150 x 150 (px)(格式为 gif, jpg, jpeg, png)</div>
                <input type="hidden" name="dir" value="shops">
                <input type="hidden" name="width" value="150">
                <input type="hidden" name="folder" value="Identi">
                <input type="hidden" name="sfilename" value="Identi">
                <input type="hidden" name="fname" value="identityImg">
                <input type="hidden" class="s_Filedata" name="s_Filedata" value="">
            </div>
          </form>
          <!--身份证反面图片-->
          <form id="uploadform_Identity" autocomplete="off" style="position:absolute;top:1060px;left:138px;z-index:10;" enctype="multipart/form-data" method="POST" target="upload" action="{:U('Home/Shops/uploadPic')}" >
            <div style="position:relative;">
                <input id="identityRevImg" disabled="disabled" name="identityRevImg" class="text" type="text" value="{$object.idRevImg}" readonly style="margin-right:4px;float:left;margin-left:8px;width:237px;"/>
                <div class="div1">
                    <div class="div2">浏览</div>
                    <input type="file" class="inputstyle" id="Identity" name="Identity" onchange="updfile('Identity');" >
                </div>
                <div style="clear:both;"></div>
              <div >&nbsp;图片大小:150 x 150 (px)(格式为 gif, jpg, jpeg, png)</div>
                <input type="hidden" name="dir" value="shops">
                <input type="hidden" name="width" value="150">
                <input type="hidden" name="folder" value="Identity">
                <input type="hidden" name="sfilename" value="Identity">
                <input type="hidden" name="fname" value="identityRevImg">
                <input type="hidden" class="s_Filedata" name="s_Filedata" value="">
            </div>
          </form>
       <form name="myform" method="post" id="myform" autocomplete="off">
        <input type='hidden' id='id' value='{$object.shopId}'/>

        <table class="table table-hover table-striped table-bordered wst-form">
           <tr>
             <th width='150' align='right'>店铺名称<font color='red'>*</font>：</th>
             <td><input type='text' id='shopName' class="form-control wst-ipt" value='{$object.shopName}' style='width:250px;' maxLength='25'/></td>
           </tr>
           <tr>
             <th align='right'>店主姓名<font color='red'>*</font>：</th>
             <td><input type='text' id='userName' class="form-control wst-ipt" value='{$object.userName}' style='width:250px;' maxLength='25'/></td>
           </tr>
           <tr>
             <th align='right'>公司名称<font color='red'>*</font>：</th>
             <td><input type='text' id='shopCompany' class="form-control wst-ipt" value='{$object.shopCompany}' style='width:250px;' maxLength='25'/></td>
           </tr>
           <tr>
             <th align='right'>店铺电话<font color='red'>*</font>：</th>
             <td><input type='text' id='shopTel' class="form-control wst-ipt" value='{$object.shopTel}' maxLength='25'/></td>
           </tr>
           <tr>
             <th align='right'>店铺QQ：</th>
             <td><input type='text' id='qqNo' class="form-control wst-ipt" value='{$object.qqNo}' maxLength='25'/></td>
           </tr>
           <tr>
             <th width='120' align='right'>营业执照编号：</th>
             <td><input type='text' id='permitNo' value="{$object['permitNo']}" class="form-control wst-ipt" style='width:200px;'/></td>
           </tr>
           <tr>
             <th width='120' align='right'>身份证号码<font color='red'>*</font>：</th>
             <td><input type='text' id='idNo' value="{$object['idNo']}" class="form-control wst-ipt" style='width:200px;' maxlength="18" /></td>
           </tr>
           <tr style="height:80px;">
             <th align='right'>店铺图标<font color='red'>*</font>：</th>
             <td>
               <div id="preview_Filedata">
                  <img height="150" id='preview' src='__ROOT__/{$object.shopImg}' <if condition="$object['shopImg'] eq '' ">style="display:none"</if>>
               </div>
             </td>
           </tr>
           <tr style='height:auto;position:relative;height:230px;'>
             <th width='120' align='right'>营业执照图片：</th>
             <td>
             <div id="preview_Perm" style="margin-top: 50px;">
              <img id='permit' src='__ROOT__/{$object.permitImg}' height='150' <if condition="$object['permitImg'] eq '' ">style="display:none"</if> />
             </div>
             </td>
           </tr>
           <tr  style='height:auto;position:relative;height:230px;'>
             <th width='120' align='right' style="padding-top:60px;">身份证正面图片<font color='red'>*</font>：</th>
             <td>
             <div id="preview_Identi" style="margin-top: 20px;">
              <img id='identity' src='__ROOT__/{$object.idImg}' height='150'/>
             </if>
             </div>
             </td>
           </tr>
           <tr  style='height:auto;position:relative;height:230px;'>
             <th width='120' align='right' style="padding-top:60px;">身份证反面图片<font color='red'>*</font>：</th>
             <td>
             <div id="preview_Identity">
              <img id='identityRev' src='__ROOT__/{$object.idRevImg}' height='150' />
             </div>
             </td>
             <tr></tr>
             <tr>
                <th align='right'>所属地区<font color='red'>*</font>：</th>
                <td>
                    <select id='areaId1' onchange='javascript:getAreaList("areaId2",this.value,0)'>
                        <option value=''>请选择</option>
                        <volist name="areaList" id="vo">
                            <option value='{$vo['areaId']}' <if condition="$object['areaId1'] == $vo['areaId'] ">selected</if>>{$vo['areaName']}</option>
                        </volist>
                    </select>
                    <select id='areaId2' onchange='javascript:getAreaList("areaId3",this.value,1);getCommunitys()'>
                        <option value=''>请选择</option>

                    </select>
                    <select id='areaId3'>
                        <option value=''>请选择</option>
                    </select>
                </td>
            </tr>
           <tr>
             <th align='right'>店铺地址<font color='red'>*</font>：</th>
             <td><input type='text' id='shopAddress' class="form-control wst-ipt" value='{$object.shopAddress}' style='width:350px;' maxLength='100'/></td>
           </tr>
           <tr id='shopMap'>
             <td>&nbsp;</td>
             <td>
             <div id="mapContainer" style='height:400px;width:90%;'>等待地图初始化...</div>
             <div >
             <input type='hidden' id='latitude' name='latitude' value="{$object['latitude']}"/>
             <input type='hidden' id='longitude' name='longitude' value="{$object['longitude']}"/>
             <input type='hidden' id='mapLevel' name='mapLevel' value="{$object['mapLevel']}"/>
             </div>
             </td>
           </tr>

           <tr>
             <th align='right'>营业状态<font color='red'>*</font>：</th>
             <td>
             <label>
             <input type='radio' id='shopAtive1' name='shopAtive' value='1' <if condition="$object['shopAtive'] ==1 ">checked</if> />营业中&nbsp;&nbsp;
             </label>
             <label>
             <input type='radio' id='shopAtive0' name='shopAtive' value='0' <if condition="$object['shopAtive'] ==0 ">checked</if> />休息中
             </label>
             </td>
           </tr>
    <php>if($agent['status']){</php>
            <tr>
                <th align='right'>分销模块<font color='red'>*</font>：</th>
                <td>
                    <label>
                        <input type='radio' id='agentAtvie1' name='agentStatus' value='1' <if condition="$object['agentStatus'] ==1 ">checked</if> />开启中&nbsp;&nbsp;
                    </label>
                    <label>
                        <input type='radio' id='agentAtvie0' name='agentStatus' value='0' <if condition="$object['agentStatus'] ==0 ">checked</if> />关闭中
                    </label>
                </td>
            </tr>
<php>}</php>

           <tr>
             <th align='right'>配送区域<font color='red'>*</font>：</th>
             <td id="wst_shop_area">
             <div class="text-gray Hide">展开全部：<input type="checkbox" id="expendAll" checked <if condition="$WST_USER['isSelf'] == 1">disabled</if> ></div>
             <div id='areaTree'></div>
             </td>
           </tr>
           <tr>
             <th align='right'>配送方式：</th>
             <td>平台配送</td>
           </tr>
           <tr>
             <th align='right'>订单配送起步价(元)<font color='red'>*</font>：</th>
             <td><input type='text' id='deliveryStartMoney' class="form-control wst-ipt" value='{$object.deliveryStartMoney}' onkeypress="return WST.isNumberdoteKey(event)" onkeyup="javascript:WST.isChinese(this,1)" maxLength='6'/></td>
           </tr>
           <tr style="display:none;">
             <th align='right'>包邮起步价(元)<font color='red'>*</font>：</th>
             <td><input type='text' id='deliveryFreeMoney' class="form-control wst-ipt" value='{$object.deliveryFreeMoney}' onkeypress="return WST.isNumberdoteKey(event)" onkeyup="javascript:WST.isChinese(this,1)" maxLength='6'/></td>
           </tr>
           <tr style="display:none;">
             <th align='right'>邮费(元)<font color='red'>*</font>：</th>
             <td><input type='text' id='deliveryMoney' class="form-control wst-ipt" value='{$object.deliveryMoney}' onkeypress="return WST.isNumberdoteKey(event)" onkeyup="javascript:WST.isChinese(this,1)" maxLength='25'/></td>
           </tr>
           <tr style="display:none;">
             <th align='right'>平均配送时间(分钟)<font color='red'>*</font>：</th>
             <td><input type='text' id='deliveryCostTime' class="form-control wst-ipt" value='{$object.deliveryCostTime}' onkeypress="return WST.isNumberKey(event)" onkeyup="javascript:WST.isChinese(this,1)" maxLength='6'/></td>
           </tr>
           <tr style="display:none;">
             <th align='right'>平均消费金额(元)<font color='red'>*</font>：</th>
             <td><input type='text' id='avgeCostMoney' class="form-control wst-ipt" value='{$object.avgeCostMoney}' onkeypress="return WST.isNumberdoteKey(event)" onkeyup="javascript:WST.isChinese(this,1)" maxLength='25'/></td>
           </tr>
           <!-- <tr>
             <th align='right'>能否开发票<font color='red'>*</font>：</th>
             <td>
             <label>
             <input type='radio' id='isInvoice1' name='isInvoice' value='1' onclick='javascript:isInvoce(true)' />能&nbsp;&nbsp;
             </label>
             <label>
             <input type='radio' id='isInvoice0' name='isInvoice' value='0' onclick='javascript:isInvoce(false)' />否
             </label>
             </td>
           </tr> -->
           <!-- <tr id='invoiceRemarkstr' >
             <th align='right'>发票说明：</th>
             <td><input type='text' id='invoiceRemarks' class="form-control wst-ipt" value='{//$object.invoiceRemarks}' style='width:350px;' maxLength='100'/></td>
           </tr> -->
           <tr>
             <th width='120' align='right'>转账银行<font color='red'>*</font>：</th>
             <td>
             <select id='bankId'>
                <option value=''>请选择</option>
                <volist name="bankList" id="vo">
                <option <if condition="$vo['bankId'] eq $object['bankId']">selected</if> value='{$vo['bankId']}'>{$vo['bankName']}</option>
                </volist>
             </select>
             </td>
           </tr>
           <tr>
             <th width='120' align='right'>银行卡卡号<font color='red'>*</font>：</th>
             <td><input type='text' id='bankNo' value='{$object.bankNo}' maxLength='25' size='50'/></td>
           </tr>
           <tr>
             <th align='right'>营业时间<font color='red'>*</font>：</th>
             <td>
             <select id='serviceStartTime'>
                <option>请选择</option>
             </select>
             至
             <select id='serviceEndTime'>
                <option>请选择</option>
             </select>
             </td>
           </tr>
           <tr>
             <td colspan='2' style='text-align:center;padding:20px;'>
                 <button type="submit" class='wst-btn-query'>保&nbsp;存</button>&nbsp;&nbsp;
                 <button type="button" class='wst-btn-query' onclick='javascript:location.reload();'>重&nbsp;置</button>

             </td>
           </tr>
        </table>
       </form>
       </div>
   </div>
   <script type="text/javascript">
   var isSelf = "{$WST_USER['isSelf']}";
  </script>
</block>
